<?php

/**
 * 上传图片
 */
const UPLOAD_IMAGE = [
    
    // 基础部分 ---------------------------------------------
    "allow"=>['image/png','image/gif','image/jpg','image/jpeg'],
    "size" => "5M",
    'saveTemp'=> ROOT . '/temps/upload/image',

    // OSS部分 ---------------------------------------------
    'bucket'=> 'cg-upload-image',
    'dir'=> 'zh.sgboke.com',
    'cdn'=> 'image.cdn.sgboke.com'
];

/**
 * 上传文档
 */
const UPLOAD_DOC = [

    // 基础部分 ---------------------------------------------
    "allow"=>['image/png','image/gif','image/jpg','image/jpeg'],
    "size" => "5M",
    'saveTemp'=> ROOT . '/temps/upload/doc',

    // OSS部分 ---------------------------------------------
    'bucket'=> 'cg-upload-doc',
    'dir'=> 'zh.sgboke.com/',
    'cdn'=> 'doc.cdn.sgboke.com'
];

/**
 * 上传压缩包
 */
const UPLOAD_ZIP = [

    // 基础部分 ---------------------------------------------
    "allow"=>['image/png','image/gif','image/jpg','image/jpeg'],
    "size" => "5M",
    'saveTemp'=> ROOT . '/temps/upload/zip',

    // OSS部分 ---------------------------------------------
    'bucket'=> 'cg-upload-zip',
    'dir'=> 'zh.sgboke.com/',
    'cdn'=> 'zip.cdn.sgboke.com'
];
